﻿using System;
using System.Collections.Generic;
using System.Runtime.Serialization;

namespace Hippo.Framework.Model
{
    [Serializable]
    [DataContract]
    public class RunSpecification
    {
        public RunSpecification()
        {
            Scenarios = new TestScenario[0];
        }

        [DataMember]
        public TestScenario[] Scenarios { get; set; }

        public void AddScenario(TestScenario scenario)
        {
            var scenarios = new List<TestScenario>(Scenarios);
            scenarios.Add(scenario);

            Scenarios = scenarios.ToArray();
        }
    }
}
